package com.yb.bluetooth.util

/**
 * Created by zyb
 * Date 2021/11/25 15:40
 * Desc
 */

object TempDataUtils {

    private val mTempDataMap = mutableMapOf<String, MutableList<String>>()

    fun getTempData(address: String): MutableList<String> {
        return mTempDataMap[address] ?: mutableListOf()
    }

    fun putTempData(address: String, list: MutableList<String>) {
        mTempDataMap[address] = list
    }

    fun putTempMeg(address: String, msg: String) {
        val list = getTempData(address)
        list.add(msg)
        mTempDataMap[address] = list
    }
}